<template>
  <div id="app">
    <el-container>
      <el-header>
        <div style="float:left;font-size:25px;margin-left:20px;margin-top:15px;color:#409eff">
          <i class="el-icon-s-home"></i>
          <el-button type="text" @click="$router.push('/',()=>{},()=>{})">返回首页</el-button>
        </div>
        <h1 class="header-content">个人中心</h1>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu default-active="1" class="el-menu-vertical-demo">
            <el-menu-item index="1" @click="$router.push('/userInfo',()=>{},()=>{})">
              <i class="el-icon-user"></i>
              <span slot="title">个人信息</span>
            </el-menu-item>
            <el-menu-item index="2" @click="$router.push('/userProfile',()=>{},()=>{})">
              <i class="el-icon-document"></i>
              <span slot="title">详细资料</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
  
  <script>
export default {};
</script>
  
  <style scoped>
#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.header-content {
  font-size: 24px;
  color: black;
  text-align: center;
  line-height: 60px;
  background-color: #f5f5f5;
  width: 100%;
  margin-block-start: 0;
  margin-block-end: 0;
}

.el-menu-vertical-demo {
  height: 100%;
  border-right: none;
}

.main-content {
  padding: 20px;
}

.el-header {
  padding: 0;
}
</style>
  